﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lenovo.CFI.Common
{
    public class UserIdeaApp
    {
        public UserIdeaApp()
        {
        }

        public UserIdeaApp(int id)
        {
            this.id = id;
        }

        private int id;
        private string applicant;
        private int ideaID;
        private DateTime appTime;
        private string appReason;
        private int status;
        private string approver;
        private string approveReason;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        public string Applicant
        {
            get { return applicant; }
            set { applicant = value; }
        }

        public int IdeaID
        {
            get { return ideaID; }
            set { ideaID = value; }
        }

        public DateTime AppTime
        {
            get { return appTime; }
            set { appTime = value; }
        }

        public string AppReason
        {
            get { return appReason; }
            set { appReason = value; }
        }

        public int Status
        {
            get { return status; }
            set { status = value; }
        }

        public string StatusText
        {
            get 
            {
                if (this.status == 1)
                    return "Pending";
                else if (this.status == 2)
                    return "Agree";
                else
                    return "Reject";
            }
        }

        public string Approver
        {
            get { return approver; }
            set { approver = value; }
        }

        public string ApproveReason
        {
            get { return approveReason; }
            set { approveReason = value; }
        }
    }
}
